package day2;
import java.util.Scanner;

import org.junit.Test;

public class qwerdf {
	
	@Test
	public void test1() {
		int a = 10;
		int b;
		System.out.println((b = ++a) + a );
	}
	@Test
	public void test2() {
		int[] a = {23,1,45,2};
		for (int i = 0; i < a.length - 1; i++) {
			for (int j = 0; j < a.length - i - 1; j++) {
				if (a[j] > a[j+1]) {
					int temp = a[j];
					a[j] = a[j+1];
					a[j+1] = temp;
				}
			}
		}
		for(int i = 0 ; i < a.length ; i++) {
			System.out.println(a[i]);
		}
	}
	
	@Test
	public void testt() {
		for (int i = 1; i <= 9; i++) {
			for (int j = 1; j <= i ; j++) {
				System.out.print(i + "*" + j + "=" + i*j + " ");
				if (j == 2 && j*i < 10) {
					System.out.print(" ");
				}
			}
			System.out.println();
		}
	}
}
